import { createAPI } from '@/utils/request'

// 基础题库添加
export const add = data => createAPI('/questions', 'post', data)
// 精选题库列表
export const choice = data => createAPI('/questions/choice', 'get', data)
// 学科
export const simple = data => createAPI('/subjects/simple', 'get', data)
// 标签
// export const simple = data => createAPI('/tags/simple', 'get', data)
// 目录详情
// export const detail = data => createAPI(`/directorys/${data.id}`, 'get', data)
// 目录列表
export const list = data => createAPI('/directorys', 'get', data)
export const list1 = data => createAPI('/companys', 'get', data)
export const simple1 = data => createAPI('/tags/simple', 'get', data)
